<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CrateShopBrandTable extends Migration
{
    public function up()
    {
        //品牌表
        Schema::create('shop_brand', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('品牌名称');
            $table->string('images')->nullable()->comment('图片');
            $table->string('url')->nullable()->comment('网址');
            $table->string('description')->default('暂无')->comment('描述');
            $table->tinyInteger('sort')->default(50)->comment('排序');
            $table->boolean('status')->default(true)->comment('状态 0显示,1隐藏');
            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::dropIfExists('shop_brand');
    }
}
